//
//  DeckCollectionViewCell.m
//  Car
//
//  Created by apple on 15/9/17.
//  Copyright (c) 2015年 朱鸿儒. All rights reserved.
//

#import "DeckCollectionViewCell.h"

@implementation DeckCollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    
    if (self) {
        
        UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 50, 30)];
        imageView.image = [UIImage imageNamed:@"deckItem2.0"];
        
        imageView.layer.cornerRadius = 10;
        imageView.layer.masksToBounds = YES;
        
        [self addSubview:imageView];
        
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 50, 30)];
        self.label.textColor = [UIColor whiteColor];
        //  居中显示
        self.label.textAlignment = NSTextAlignmentCenter;
        
        //  圆角
        self.label.layer.cornerRadius = 10;
        self.label.layer.masksToBounds = YES;
        
        [imageView addSubview:self.label];
        
    }
    
    
    return self;
}






@end
